package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: ysotirov
 * Date: 31/01/13
 * Time: 16:57
 * To change this template use File | Settings | File Templates.
 */
public class GoBackToMain extends Option{
    IOInterface ioH;

    public GoBackToMain(IOInterface ioHndl, Biblioteca bibl) {
        super(ioHndl,bibl);
        ioH = ioHndl;
    }

    @Override
    public void executeOption() {
        MainMenu menu = new MainMenu(ioH,this.biblioteca);
        menu.titleMsg = "Main Menu";
        menu.displayMenu();
        int choice = getUserChoice();
        menu.executeOption(choice);
    }


}
